cmake_minimum_required (VERSION 2.6)
project (Yaml)
find_package( OpenCV )

if( UNIX )
    include_directories ( "/space/csxsl/src/opencv-shuda/ShudaLib/include" )
    link_directories ( "/space/csxsl/src/opencv-shuda/ShudaLib/lib" )
    link_directories ( "/usr/lib" )
    include_directories ( "/usr/local/include/eigen3" )
    include_directories ( "/usr/include/ni" )

    # set collection of libraries
    set ( EXTRA_LIBS ${EXTRA_LIBS} ShudaLib OpenNI boost_system boost_filesystem boost_serialization yaml-cpp glut GLU opencv_core
    opencv_highgui opencv_calib3d opencv_features2d opencv_video opencv_imgproc GLEW)

elseif( WIN32 )
    include_directories ( "C:/csxsl/install/boost_1_48_0/include" ) 
    include_directories ( "C:/csxsl/install/yaml-cpp-0.2.7/include" )
    include_directories ( "C:/csxsl/src/opencv-shuda/ShudaLib/include" ) 
    link_directories ( "C:/csxsl/install/yaml-cpp-0.2.7/lib" )

    if(MSVC)
    	set(YAML-CPP optimized yaml-cpp debug yaml-cppd)
        set ( EXTRA_LIBS ${EXTRA_LIBS} ${YAML-CPP} )
    endif()

endif()

add_executable(Yaml main.cpp)
# link with the 3d party libraries
target_link_libraries( Yaml ${EXTRA_LIBS} )
